home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12822 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 61 69 6d 6e 65 |Path: ne|ws.aimne|
|00000010| 74 2e 63 6f 6d 21 6e 65 | 77 73 0a 46 72 6f 6d 3a |t.com!ne|ws.From:|
|00000020| 20 52 61 6d 6e 69 76 61 | 73 20 4c 61 64 64 61 64 | Ramniva|s Laddad|
|00000030| 20 3c 72 61 6d 6e 69 76 | 61 73 40 64 69 67 69 74 | <ramniv|as@digit|
|00000040| 2e 63 6f 6d 3e 0a 4e 65 | 77 73 67 72 6f 75 70 73 |.com>.Ne|wsgroups|
|00000050| 3a 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 2b 2b 2c |: comp.l|ang.c++,|
|00000060| 67 6e 75 2e 67 2b 2b 2e | 68 65 6c 70 0a 53 75 62 |gnu.g++.|help.Sub|
|00000070| 6a 65 63 74 3a 20 52 65 | 3a 20 54 65 6d 70 6c 61 |ject: Re|: Templa|
|00000080| 74 65 20 66 75 6e 63 74 | 69 6f 6e 20 6f 6e 6c 79 |te funct|ion only|
|00000090| 20 66 6f 72 20 62 75 69 | 6c 74 2d 69 6e 20 74 79 | for bui|lt-in ty|
|000000a0| 70 65 73 0a 44 61 74 65 | 3a 20 32 31 20 4d 61 72 |pes.Date|: 21 Mar|
|000000b0| 20 31 39 39 36 20 32 32 | 3a 30 30 3a 35 30 20 47 | 1996 22|:00:50 G|
|000000c0| 4d 54 0a 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |MT.Organ|ization:|
|000000d0| 20 41 69 6d 6e 65 74 20 | 49 6e 66 6f 72 6d 61 74 | Aimnet |Informat|
|000000e0| 69 6f 6e 20 53 65 72 76 | 69 63 65 73 0a 4d 65 73 |ion Serv|ices.Mes|
|000000f0| 73 61 67 65 2d 49 44 3a | 20 3c 34 69 73 6a 69 69 |sage-ID:| <4isjii|
|00000100| 24 66 76 62 40 6e 65 77 | 73 2e 61 69 6d 6e 65 74 |$fvb@new|s.aimnet|
|00000110| 2e 63 6f 6d 3e 0a 52 65 | 66 65 72 65 6e 63 65 73 |.com>.Re|ferences|
|00000120| 3a 20 3c 33 31 35 31 42 | 41 33 38 2e 34 31 43 36 |: <3151B|A38.41C6|
|00000130| 40 73 74 75 64 69 2e 65 | 70 66 6c 2e 63 68 3e 0a |@studi.e|pfl.ch>.|
|00000140| 4e 4e 54 50 2d 50 6f 73 | 74 69 6e 67 2d 48 6f 73 |NNTP-Pos|ting-Hos|
|00000150| 74 3a 20 72 65 6e 2e 64 | 69 67 69 74 2e 63 6f 6d |t: ren.d|igit.com|
|00000160| 0a 4d 69 6d 65 2d 56 65 | 72 73 69 6f 6e 3a 20 31 |.Mime-Ve|rsion: 1|
|00000170| 2e 30 0a 43 6f 6e 74 65 | 6e 74 2d 54 79 70 65 3a |.0.Conte|nt-Type:|
|00000180| 20 74 65 78 74 2f 70 6c | 61 69 6e 3b 20 63 68 61 | text/pl|ain; cha|
|00000190| 72 73 65 74 3d 75 73 2d | 61 73 63 69 69 0a 43 6f |rset=us-|ascii.Co|
|000001a0| 6e 74 65 6e 74 2d 54 72 | 61 6e 73 66 65 72 2d 45 |ntent-Tr|ansfer-E|
|000001b0| 6e 63 6f 64 69 6e 67 3a | 20 37 62 69 74 0a 58 2d |ncoding:| 7bit.X-|
|000001c0| 4d 61 69 6c 65 72 3a 20 | 4d 6f 7a 69 6c 6c 61 20 |Mailer: |Mozilla |
|000001d0| 31 2e 31 4e 20 28 58 31 | 31 3b 20 49 3b 20 53 75 |1.1N (X1|1; I; Su|
|000001e0| 6e 4f 53 20 34 2e 31 2e | 33 20 73 75 6e 34 63 29 |nOS 4.1.|3 sun4c)|
|000001f0| 0a 54 6f 3a 20 42 65 72 | 6e 68 61 72 64 2e 52 75 |.To: Ber|nhard.Ru|
|00000200| 63 68 40 73 74 75 64 69 | 2e 65 70 66 6c 2e 63 68 |ch@studi|.epfl.ch|
|00000210| 0a 58 2d 55 52 4c 3a 20 | 6e 65 77 73 3a 33 31 35 |.X-URL: |news:315|
|00000220| 31 42 41 33 38 2e 34 31 | 43 36 40 73 74 75 64 69 |1BA38.41|C6@studi|
|00000230| 2e 65 70 66 6c 2e 63 68 | 0a 0a 4e 6f 2e 20 50 72 |.epfl.ch|..No. Pr|
|00000240| 6f 62 6c 65 6d 20 69 73 | 20 6e 6f 74 20 22 6e 6f |oblem is| not "no|
|00000250| 20 6f 70 65 72 61 74 6f | 72 20 69 6e 20 69 73 74 | operato|r in ist|
|00000260| 72 65 61 6d 20 66 6f 72 | 20 63 6c 61 73 73 20 41 |ream for| class A|
|00000270| 22 2e 20 41 6e 64 20 79 | 6f 75 20 64 6f 6e 27 74 |". And y|ou don't|
|00000280| 0a 6e 65 65 64 20 74 6f | 20 6d 6f 64 69 66 79 20 |.need to| modify |
|00000290| 69 73 74 72 65 61 6d 20 | 66 6f 72 20 65 61 63 68 |istream |for each|
|000002a0| 20 73 75 63 68 20 63 6c | 61 73 73 2e 0a 0a 57 68 | such cl|ass...Wh|
|000002b0| 61 74 20 79 6f 75 20 6e | 65 65 64 20 69 73 20 61 |at you n|eed is a|
|000002c0| 20 66 75 6e 63 74 69 6f | 6e 2c 0a 69 73 74 72 65 | functio|n,.istre|
|000002d0| 61 6d 26 20 6f 70 65 72 | 61 74 6f 72 20 3e 3e 20 |am& oper|ator >> |
|000002e0| 28 69 73 74 72 65 61 6d | 26 20 72 49 6e 53 74 72 |(istream|& rInStr|
|000002f0| 65 61 6d 2c 20 41 26 20 | 61 29 0a 7b 0a 09 2f 2f |eam, A& |a).{..//|
|00000300| 20 72 49 6e 53 74 72 65 | 61 6d 20 3e 3e 20 74 6f | rInStre|am >> to|
|00000310| 20 41 27 73 20 6d 65 6d | 62 65 72 73 20 65 74 63 | A's mem|bers etc|
|00000320| 2e 0a 09 2f 2f 20 2e 2e | 2e 0a 09 72 65 74 75 72 |...// ..|...retur|
|00000330| 6e 20 72 49 6e 53 74 72 | 65 61 6d 3b 0a 7d 0a 0a |n rInStr|eam;.}..|
|00000340| 59 6f 75 20 6e 65 65 64 | 20 74 6f 20 68 61 76 65 |You need| to have|
|00000350| 20 6f 6e 65 20 73 75 63 | 68 20 66 75 6e 63 74 69 | one suc|h functi|
|00000360| 6f 6e 20 66 6f 72 20 65 | 61 63 68 20 6f 66 20 79 |on for e|ach of y|
|00000370| 6f 75 72 20 63 6c 61 73 | 73 20 61 73 20 68 6f 77 |our clas|s as how|
|00000380| 20 74 6f 0a 61 73 73 6f | 63 69 61 74 65 20 73 74 | to.asso|ciate st|
|00000390| 72 65 61 6d 20 69 6e 70 | 75 74 20 74 6f 20 63 6c |ream inp|ut to cl|
|000003a0| 61 73 73 20 61 74 74 72 | 69 62 75 74 65 20 69 73 |ass attr|ibute is|
|000003b0| 20 61 20 63 6c 61 73 73 | 20 73 70 65 63 69 66 69 | a class| specifi|
|000003c0| 63 20 6d 61 74 74 65 72 | 2e 0a 0a 42 54 57 2c 20 |c matter|...BTW, |
|000003d0| 6c 6f 6f 6b 73 20 6c 69 | 6b 65 20 79 6f 75 20 68 |looks li|ke you h|
|000003e0| 61 76 65 20 74 79 70 65 | 64 65 66 69 6e 65 64 20 |ave type|defined |
|000003f0| 69 73 74 72 65 61 6d 20 | 74 6f 20 49 6e 53 72 65 |istream |to InSre|
|00000400| 61 6d 2e 20 41 6d 20 49 | 20 72 69 67 68 74 3f 0a |am. Am I| right?.|
|00000410| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+